Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.

Namespace:  C1.Data
Assembly:  C1.Data.Entity (in C1.Data.Entity.dll)

Syntax

C#
public ProgressiveView<T> ProgressiveLoading<TKey>(
	Expression<Func<T, TKey>> sortKeySelector,
	bool ascending,
	int loadSize
)
Visual Basic
Public Function ProgressiveLoading(Of TKey) ( _
	sortKeySelector As Expression(Of Func(Of T, TKey)), _
	ascending As Boolean, _
	loadSize As Integer _
) As ProgressiveView(Of T)

Parameters

sortKeySelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
A function specifying a sort key.
ascending
Type: System..::..Boolean
A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).
loadSize
Type: System..::..Int32
The size of the page.

Type Parameters

TKey
The type of the sort key.

Return Value

A client view that loads the same entities as the source view but does it progressively.

Remarks

Sorting is required, loading entities progressively is impossible without sort.

See Also